package module16;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;

public class Front_Back_Navigation {

	/**
	 * @param args
	 */
	public static WebDriver driver;
	public static void main(String[] args) throws Throwable {
		driver = new FirefoxDriver();
		driver.navigate().to("http://www.gmail.com");
		
		driver.findElement(By.xpath("html/body/div[1]/div[2]/div[2]/ul[1]/li[3]/p[2]/a")).click();
		
		Thread.sleep(4000);
		driver.navigate().back();
		Thread.sleep(4000);
		
		driver.navigate().forward();
		Thread.sleep(4000);
		
		driver.quit();

	}

}
